//
//  MineTool.h
//  Mine
//
//  Created by CPX on 2018/7/23.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 我的模块设置相关
 @author yzl
 */
@interface MineTool : NSObject

+ (instancetype)sharedTool;

@property (nonatomic, copy) NSString *userToken; ///<用户token
@property (nonatomic, copy) NSString *email; ///<用户账号
@property (nonatomic, copy) NSString *username; ///<用户昵称
@property (nonatomic, copy) NSString *avatar; ///<头像
@property (nonatomic) BOOL isLogin; ///<是否登录了

@property (nonatomic, copy) NSString *deviceId;
@property (nonatomic, copy) NSString *fcmToken;


//pray time 算法
@property (nonatomic) NSInteger asr; ///<0 1， 默认 0
@property (nonatomic) NSInteger highLatitude; ///<1，2，3  默认2
@property (nonatomic) NSInteger prayTimeCalMeth; ///见 PrayTime.h

- (void)saveAsr:(NSInteger)asr;
- (void)saveHighLatitude:(NSInteger)highLatitude;
- (void)savePrayTimeCalMeth:(NSInteger)prayTimeCalMeth;

- (void)saveUserInfo;
- (void)clearUserInfo;

- (void)registerToken;

@end
